]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar-server: Add gnu_printf format attribute
authorRobert Mader <robert.mader@posteo.de>
Tue, 5 Mar 2019 22:45:44 +0000 (23:45 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 17 Apr 2019 21:39:03 +0000 (21:39 +0000)
Suggested by compiler with `-Wsuggest-attribute=format`

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/441

src/calendar-server/gnome-shell-calendar-server.c

index 9b76fb07318f4f0813014d5a6a0c0525f9da6ce7..2ad8fb99e930f3a24d6751cddad857165004664d 100644 (file)
@@ -1078,7 +1078,7 @@ main (int    argc,
 
 /* ---------------------------------------------------------------------------------------------------- */
 
-static void
+static void __attribute__((format(printf, 1, 0)))
 print_debug (const gchar *format, ...)
 {
   gchar *s;